package com.crm.service.knowledgeitem;

import com.crm.model.entity.knowledgeitem.KnowledgeSection;
import com.crm.model.vo.knowledgeitem.KnowledgeSectionVO;
import java.util.List;

public interface KnowledgeSectionDbService {


    Boolean insert(KnowledgeSection record);


    Boolean update(KnowledgeSection record);

    /**
     * @Description: 根据知识条目ID获取章节列表
     * @Param: [itemId]
     * @Return: java.util.List<com.crm.model.vo.knowledgeitem.KnowledgeSectionVO>
     * @Author: lixq-f
     * @Date: 2021/5/7
    **/
    List<KnowledgeSectionVO> selectListByKnItemId(String itemId);

    /**
     * @Description: 根据章节ID删除
     * @Param: [sectionId, deleteStatus]
     * @Return: java.lang.Boolean
     * @Author: lixq-f
     * @Date: 2021/5/14
    **/
    Boolean deleteById(String sectionId, short deleteStatus);

    /**
     * @Description: 根据条目ID删除
     * @Param: [itemId, deleteStatus]
     * @Return: java.lang.Boolean
     * @Author: lixq-f
     * @Date: 2021/5/14
    **/
    Boolean deleteByItemId(String itemId, short deleteStatus);


    KnowledgeSection selectKnSectionByKey(String sectionId);



}
